import random
# 排序数组
arr = [10, 3, 6, 8, 1, 2, 0, 7, 54, 4, 9, 5, 28, 13, 32, -2, -1]
arr_100 = [
	41, 13, 22, 100, 42, 58, 47, 86, 89, 41, 
	8,  22, 81, 82,  89, 64, 9,  55, 30, 23, 
	65, 66, 21, 36,  56, 8,  32, 60, 86, 2, 
	49, 96, 97, 43,  51, 95, 41, 11, 2,  67, 
	17, 27, 92, 26,  3,  6,  56, 90, 46, 68, 
	63, 44, 23, 10,  94, 7,  44, 26, 93, 57, 
	19, 66, 77, 57,  63, 48, 23, 96, 82, 11, 
	27, 72, 40, 42,  31, 16, 78, 56, 12, 35, 
	29, 11, 54, 6,   87, 52, 90, 10, 28, 93, 
	6,  59, 80, 20,  82, 28, 57, 93, 73, 0
	]
# 交换两个数
def swp(arr, i, j):
	tmp = arr[i]
	arr[i] = arr[j]
	arr[j] = tmp

# 随机生成1000个数字
def random_num(num):
	arr = []
	for i in range(1,num):
		arr.append(random.randint(1,num))
	return arr

if __name__ == '__main__':
	arr = random_num(100)
	print(arr)